from rest_framework import serializers

from .models import DataActiontime, DataFaultcode, DataState, FanucAxis, Faultcontent, FanucCycle


class DataActiontimeSerializer(serializers.ModelSerializer):
    class Meta:
        model = DataActiontime
        fields = "__all__"


class DataFaultcodeSerializer(serializers.ModelSerializer):
    class Meta:
        model = DataFaultcode
        fields = "__all__"


class DataStateSerializer(serializers.ModelSerializer):
    class Meta:
        model = DataState
        fields = "__all__"


class FanucAxisSerializer(serializers.ModelSerializer):
    class Meta:
        model = FanucAxis
        fields = "__all__"


class FaultcontentSerializer(serializers.ModelSerializer):
    class Meta:
        model = Faultcontent
        fields = "__all__"


class FanucCycleSerializer(serializers.ModelSerializer):
    class Meta:
        model = FanucCycle
        fields = "__all__"


